import { Fade, Slider, Carousel } from './Carousel';

// new Fade('#carousel-fade', {
//   defaultIndex: 0,
//
// });

// new Slider('#carousel-slider', {
//   defaultIndex: 0,
//   duration: 3000
// });

Carousel.create('#carousel-fade', {
  type: 'fade',
  defaultIndex: 0,
  duration: 3000
}).then((res) => console.log(res));
//Fade {$el: div#carousel-fade.carousel, $imgWraps: HTMLCollection(3), …}

Carousel.create('#carousel-slider', {
  type: 'slider',
  defaultIndex: 0,
  duration: 3000
});
